package tgc.edu.ljc.security;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;


/**
 * 此类是登陆的时候取出姓名，显示出来
 * @author Administrator
 *
 */
public class User2 extends User{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String name;

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}


	public User2(String username, String password,String name, Collection<? extends GrantedAuthority> authorities) {
		super(username, password, authorities);
		this.name=name;
	}

}
